import React, { Component } from 'react'
import { Router, Route , hashHistory } from 'react-router'
// import { createHashHistory } from 'history'

import {App} from './index'

const { Layout, Inbox } = App
// const history = createHashHistory({ queryKey: true })
const history = hashHistory

const AppRouter = (
  <Router history={history}>
    <Route path="/" component={Layout}>
      <Route path="inbox" component={Inbox} />
    </Route>
  </Router>
)


export default AppRouter


